package ic.doc.co2nudge.client.utils.events;

import java.util.EventObject;

public class DataEvent 
	extends EventObject {

	private Boolean isCompletedSuccessfully;
	
	private Object data;
	
	public DataEvent(Boolean isCompletedSuccessfully) {
		super(isCompletedSuccessfully);
		this.isCompletedSuccessfully=isCompletedSuccessfully;
	}
	
	public Boolean isCompletedSuccessfully(){
		return isCompletedSuccessfully;
	}
	
	public void setCompletionStatus(Boolean status){
		this.isCompletedSuccessfully=status;
	}
	
	public Object getData(){
		return data;
	}
	
	public void setData(Object data){
		this.data=data;
	}
}